apiVersion: v1
kind: ConfigMap
metadata:
name: cloud-dms-config
namespace: dev
data:
DMS_SYSTEM_URL: "https://devdms.softcamp.co.kr/dms/"
DMS_EXCEL_VIEWER_URL: "https://devdms.softcamp.co.kr/dmsExcel/"
DMS_AUTH_SERVICE_URL: "https://devlogin.softcamp.co.kr:443"
DMS_AUTH_SERVICE_EXTRA: "uFhoVIZI-wni6zwDS-E6xGXPqT-m2ms8GWh"
DMS_APP_TENANT_ID: "b9926b05-6169-4bc7-a781-b6d8f84f094c"
DMS_APP_TENANT_SECRET: "IykjJCopISgtIykmKiYkJSwpJCUhJiEoLSgiJyUlKic"
DMS_LOG_SERVICE_URL: "https://devlog.softcamp.co.kr:443"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cloud-dms-service
namespace: dev
labels:
app: cloud-dms-service
spec:
replicas: 1
selector:
matchLabels:
app: cloud-dms-service
template:
metadata:
labels:
app: cloud-dms-service
spec:
containers:
- name: cloud-dms-service
image: security365acr.azurecr.io/shieldrm/cloud-dms:latest
imagePullPolicy: Always
resources:
requests:
memory: 2Gi
limits:
memory: 2Gi
ports:
- containerPort: 8082
envFrom:
- configMapRef:
name: cloud-dms-config
volumeMounts:
- name: cloud-dms-data
mountPath: /opt/shieldrm/data/dms
- name: cloud-containerlinker-service
image: security365acr.azurecr.io/shieldrm/cloud-containerlinker:latest
imagePullPolicy: Always
resources:
requests:
memory: 256Mi
limits:
memory: 512Mi
ports:
- containerPort: 8181
envFrom:
- configMapRef:
name: cloud-cdf-config
volumeMounts:
- name: cloud-dms-data
mountPath: /opt/shieldrm/data/dms
volumes:
- name: cloud-dms-data
persistentVolumeClaim:
claimName: cloud-dms-data
imagePullSecrets:
- name: security365acr
---
apiVersion: v1
kind: Service
metadata:
name: cloud-dms-service
namespace: dev
spec:
type: ClusterIP
ports:
- name: dms
port: 80
targetPort: 8082
- name: containerlinker
port: 8181
targetPort: 8181
selector:
app: cloud-dms-service